Package pl.wendigo.chrome.api.fetch

Contains DevTools Protocol Fetch domain implementation accessible via FetchDomain class.

Types

AuthChallenge
Link copied to clipboard
data class AuthChallenge(source: String?, origin: String, scheme: String, realm: String)
Authorization challenge for HTTP status code 401 or 407.
AuthChallengeResponse
Link copied to clipboard
data class AuthChallengeResponse(response: String, username: String?, password: String?)
Response to an AuthChallenge.
AuthRequiredEvent
Link copied to clipboard
data class AuthRequiredEvent(requestId: RequestId, request: Request, frameId: FrameId, resourceType: ResourceType, authChallenge: AuthChallenge) : Event
Issued when the domain is enabled with handleAuthRequests set to true.
ContinueRequestRequest
Link copied to clipboard
data class ContinueRequestRequest(requestId: RequestId, url: String?, method: String?, postData: String?, headers: List<HeaderEntry>?)
Represents request frame that can be used with Fetch#continueRequest operation call.
ContinueWithAuthRequest
Link copied to clipboard
data class ContinueWithAuthRequest(requestId: RequestId, authChallengeResponse: AuthChallengeResponse)
Represents request frame that can be used with Fetch#continueWithAuth operation call.
EnableRequest
Link copied to clipboard
data class EnableRequest(patterns: List<RequestPattern>?, handleAuthRequests: Boolean?)
Represents request frame that can be used with Fetch#enable operation call.
FailRequestRequest
Link copied to clipboard
data class FailRequestRequest(requestId: RequestId, errorReason: ErrorReason)
Represents request frame that can be used with Fetch#failRequest operation call.
FetchDomain
Link copied to clipboard
class FetchDomain : Domain
A domain for letting clients substitute browser's network layer with client code.
FulfillRequestRequest
Link copied to clipboard
data class FulfillRequestRequest(requestId: RequestId, responseCode: Int, responseHeaders: List<HeaderEntry>?, binaryResponseHeaders: String?, body: String?, responsePhrase: String?)
Represents request frame that can be used with Fetch#fulfillRequest operation call.
GetResponseBodyRequest
Link copied to clipboard
data class GetResponseBodyRequest(requestId: RequestId)
Represents request frame that can be used with Fetch#getResponseBody operation call.
GetResponseBodyResponse
Link copied to clipboard
data class GetResponseBodyResponse(body: String, base64Encoded: Boolean)
Represents response frame that is returned from Fetch#getResponseBody operation call.
HeaderEntry
Link copied to clipboard
data class HeaderEntry(name: String, value: String)
Response HTTP header entry
RequestId
Link copied to clipboard
typealias RequestId = String

Unique request identifier.

RequestPattern
Link copied to clipboard
data class RequestPattern(urlPattern: String?, resourceType: ResourceType?, requestStage: RequestStage?)
RequestPausedEvent
Link copied to clipboard
data class RequestPausedEvent(requestId: RequestId, request: Request, frameId: FrameId, resourceType: ResourceType, responseErrorReason: ErrorReason?, responseStatusCode: Int?, responseHeaders: List<HeaderEntry>?, networkId: RequestId?) : Event
Issued when the domain is enabled and the request URL matches the specified filter.
RequestStage
Link copied to clipboard
enum RequestStage : Enum<RequestStage>
Stages of the request to handle.
TakeResponseBodyAsStreamRequest
Link copied to clipboard
data class TakeResponseBodyAsStreamRequest(requestId: RequestId)
Represents request frame that can be used with Fetch#takeResponseBodyAsStream operation call.
TakeResponseBodyAsStreamResponse
Link copied to clipboard
data class TakeResponseBodyAsStreamResponse(stream: StreamHandle)
Represents response frame that is returned from Fetch#takeResponseBodyAsStream operation call.